import { Init, Provide } from '@midwayjs/decorator';
import { BaseService } from '@cool-midway/core';
import { InjectEntityModel } from '@midwayjs/typeorm';
import { Repository } from 'typeorm';
import { FlockCommentEntity } from '../entity/comment';

/**
 * flock模块-评论信息
 */
@Provide()
export class FlockCommentService extends BaseService {
  @InjectEntityModel(FlockCommentEntity)
  flockCommentEntity: Repository<FlockCommentEntity>;

  @Init()
  async init() {
    await super.init();
    this.setEntity(this.flockCommentEntity);
  }
}
